package Project_etow;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.Date;
import java.util.List;
import GroupClass.*;


public interface EtowInterface extends Remote {
	List<UnitOfUser> showunit(String iduser)throws RemoteException;
	List<BillClass> bill()throws RemoteException;
        List<AccountClass> GetLogin(String username,String pass) throws RemoteException;
	List<AccountClass> showlogin()throws RemoteException;
	List<AccountClass> ShowMyProfiles(int accid) throws RemoteException;
	String CheckGroup(String idgroup) throws RemoteException;
	String ChangePasswordAccount(String accid,String password) throws RemoteException;
	String InsertAccount(int groupname,String loginname,String password1,String name,String companyname,String age,String sex,String cmnd,String address,String phone, String email)throws RemoteException;
	String EditAccount(String name , String brithday ,String cmnd,String sex, String companyname,String address,int phone, String email,int idacc)throws RemoteException;
	String DeleteAccount(String idacc)throws RemoteException;
	List<TownClass> showtownfree()throws RemoteException;
	List<FloorClass> showfloorfreeoftown(String townid)throws RemoteException;
	List<UnitClass> showunitfreeoftown(String floorid)throws RemoteException;
	List<RentUnitClass> renunit(String unitid)throws RemoteException;
	String updatebill(String idbuil,String idbuillpayment,String unitprice, String power, String water,String dateofpayment, String security, String washingroom, String clenabuildingg, String maintenan , String amountofparking)throws RemoteException;   
	String UpdateRentUnit(String unitid, String accid,String unitstatus, String unitdeco,String unitday)throws RemoteException;	
	
	String Edit(String name , String brithday, String sex, String companyname,String address,int phone, String email,int idacc)throws RemoteException;
	String send(String to,String body)throws RemoteException;
	String updatestatus(String id,String dateof)throws RemoteException;
	String updatedate(String id,String dateof)throws RemoteException;
	String SendAndAttachFile(String to,String body)throws RemoteException;
	
	List<BillPaymentClass> ShowAllBillPayment()throws RemoteException;
	String InsertBillPayment(String billPaymetSecurity,String billPaymetWashingRooms,String billPaymetCleanBuildingGlasses,String billPaymetMaintenanceElevator,String billPaymetAmountOfParking)throws RemoteException;
	String UpdateBillPayment(String billPaymetSecurity,String billPaymetWashingRooms,String billPaymetCleanBuildingGlasses,String billPaymetMaintenanceElevator,String billPaymetAmountOfParking,String IdbillPaymet)throws RemoteException;
	String DeleteBillPayment(String idbill)throws RemoteException;
	
	String InsertTown(String nametown, String numfloortown, String statustown) throws RemoteException;
	String EditTown(String nametown, int numberOfFloor, int id,String status) throws RemoteException;
	String DeleteTown(String idTown) throws RemoteException;
	
	String InsertFloor(int townID, String floorName, String statusFloor) throws RemoteException;
	String EditFloor(String floorName, String status, int floorId) throws RemoteException;
	String DeleteFloor(String idFloor) throws RemoteException;
	
	String InsertUnit(int floorID, String unitName, String unitPrice, String decorate, String billId) throws RemoteException;
	String EditUnit(String unitName, String unitPrice, String decorate, int unitID) throws RemoteException;
	String DeleteUnit(String idUnit) throws RemoteException;
}


